//index.js
//获取应用实例
const app = getApp()

Page({
  mixins: [require('../../mixin/themeChanged')],
  data: {
    inputShowed: false,
    inputVal: "",
    
    imgUrls: [
      '/assets/images/tabbar/1.jpg',
      '/assets/images/tabbar/1.jpg',
      '/assets/images/tabbar/1.jpg',
      '/assets/images/tabbar/1.jpg',
      '/assets/images/tabbar/1.jpg',
      '/assets/images/tabbar/1.jpg'
    ],
    meunList: [
      '/assets/images/tabbar/1.jpg',
      '/assets/images/tabbar/1.jpg',
      '/assets/images/tabbar/1.jpg',
      '/assets/images/tabbar/1.jpg',
      '/assets/images/tabbar/1.jpg'
    ],
    indicatorDots: true,
    autoplay: true,
    interval: 3000,
    duration: 1000,
  },
  showInput: function () {
    this.setData({
        inputShowed: true
    });
},
hideInput: function () {
    this.setData({
        inputVal: "",
        inputShowed: false
    });
},
clearInput: function () {
    this.setData({
        inputVal: ""
    });
},
inputTyping: function (e) {
    this.setData({
        inputVal: e.detail.value
    });
},
})
